package com.xhh.check.controller.v1;

import com.xhh.check.service.CheckService;
import com.xhh.check.service.UnityService;
import com.xhh.check.service.impl.UnityServiceImpl;
import com.xhh.model.check.dtos.GetUnityListDto;
import com.xhh.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

@Api(tags = "单位管理相关接口")
@RestController
@RequestMapping("/check/unity")
@RequiredArgsConstructor
public class UnityController {

    private final UnityService unityService;

    @ApiOperation("根据区域和省市编码获取招生单位列表")
    @GetMapping("/list")
    public ResponseResult getUnityListByZoneAndPCC(@SpringQueryMap GetUnityListDto dto){
        return unityService.getUnityListByZoneAndPCC(dto);
    }

}
